#include <iostream>
#include <vector>
#include <cmath>
using namespace std;


class Solution {
public:
    int NumberOf1(int n) {
        unsigned int n2 = n;
        int res = 0;
        while (n2 != 0) {
            res += n2 & 1;
            n2 >>= 1;
        }
        return res;
    }
};

int main() {
    cout << Solution().NumberOf1(-1091827354) << endl;

    return 0;
}